package com.iplant.basic.service.po.fmc;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.join.DBJoin;

import java.io.Serializable;



@DBBasePO(TableName = "fmc_workshop", CheckName = {"Code","Name,FactoryID"}, CodeAuto = true, CodePrefix = "WS-",Cache = true)
public class FMCWorkshop extends BasePO  implements Serializable {
	private static final long serialVersionUID = 1L;


	@DBCondition
	@DBField
	public int FactoryID = 0;
	@DBJoin(name = "Code", tableName = "fmc_factory",tableAsName = "f1",Schemas = DBSchemas.Basic,MainTableField = "FactoryID")
	public String FactoryCode = "";
	@DBJoin(name = "Name", tableName = "fmc_factory",tableAsName = "f1",Schemas = DBSchemas.Basic,MainTableField = "FactoryID")
	public String FactoryName = "";

	@DBField(Insert = false,ValueAuto = true)
	public int SequenceNo=0;


	@JsonProperty("SequenceNo")
	public int getSequenceNo() {
		return SequenceNo;
	}

	public void setSequenceNo(int sequenceNo) {
		SequenceNo = sequenceNo;
	}

	@JsonProperty("FactoryID")
	public int getFactoryID() {
		return FactoryID;
	}

	public void setFactoryID(int factoryID) {
		FactoryID = factoryID;
	}

	@JsonProperty("FactoryCode")
	public String getFactoryCode() {
		return FactoryCode;
	}

	public void setFactoryCode(String factoryCode) {
		FactoryCode = factoryCode;
	}

	@JsonProperty("FactoryName")
	public String getFactoryName() {
		return FactoryName;
	}

	public void setFactoryName(String factoryName) {
		FactoryName = factoryName;
	}
      
    
}
